package com.neouton.crm.sales.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neouton.crm.sales.entity.SalesFileRelationVO;
import com.neouton.crm.sales.entity.SalesFollowRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 巾凡
* @description 针对表【sales_follow_record(跟进记录表)】的数据库操作Mapper
* @createDate 2022-11-09 09:34:36
* @Entity com.neouton.crm.sales.entity.SalesFollowRecord
*/
@Mapper
public interface SalesFollowRecordMapper extends BaseMapper<SalesFollowRecordVO> {

    /**
     * 查询跟进记录
     */
    List<SalesFollowRecordVO> queryFollowRecord(@Param("salesRelationId") Integer salesRelationId, @Param("followClass") Integer followClass);

    int deleteByPrimaryKey(Long id);

    int insert(SalesFollowRecordVO record);

    int insertSelective(SalesFollowRecordVO record);

    SalesFollowRecordVO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SalesFollowRecordVO record);

    int updateByPrimaryKey(SalesFollowRecordVO record);

}
